<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GX College Social Networking</title>
</head>

<body>
<table width="753" height="366" border="0">
  <tr>
    <td bgcolor="#6699FF" height="34" colspan="7"><marquee>GX College Networking</marquee></td>
  </tr>
  <tr>
   <td bgcolor="#6699FF" width="139" height="43"><a href="/ProfessorHomePage.php">Homepage</a></td>
    <td bgcolor="#6699FF" width="133"><a href="/ProfessorHomePageProfile.php">Profile</a></td>
    <td bgcolor="#6699FF" width="108"><a href="/ProfessorHomePageAlbums.php">Albums</a></td>
    <td bgcolor="#6699FF" width="170"><a href="/ProfessorHomePageFriend.php">Friends</a></td>
    <td bgcolor="#6699FF" width="115"><a href="/ProfessorHomePageMessage.php">Messages</a></td>
    <td bgcolor="#6699FF" width="62"><a href="/logout.php">Logout</a></td>
    <td bgcolor="#6699FF" width="194">
    <form action="/ViewAllCandidateSearchProfessor.php" method="post">
Enter Candidate's first name:  
<input type="text"  name="firstname" />
<input type="submit" name="submit" value="submit" />
</form>
    </td>
  </tr>
  <tr>
    <td bgcolor="#6699FF" height="281"><table width="149" border="0">
      <tr>
        <td width="143"><a href="/WriteMessageFriendProfessor.php">Write Message</a></td>
      </tr>
      <tr>
        <td><a href="/ViewMessagesProfessor.php">View Messages</a></td>
      </tr>
    </table></td>
    <td colspan="5">
    <?php
session_start();
//$cuid = $_SESSION['username'];
//$cuid='gip2103';
if(!$_POST['cuidrec'])
{
header('Location: /WriteMessageFriendProfessor.php');
}
$firstname = $_POST['cuidrec'];
?>
<FORM ACTION="/InsertMessageProfessor.php" METHOD="POST">
<textarea name="messg" cols="40" rows="6"></textarea>
<input type="hidden" name="cuid" value="<?php echo $firstname; ?>" />
<INPUT TYPE="SUBMIT" VALUE="submit">
</FORM>
    </td>
  </tr>
</table>
</body>
</html>